package _09_2模板方法改写收银系统;

//银卡：继承模板类Card
public class SilverCard extends Card {

    //重写支付算法
    @Override
    public double calculate(double money) {
        return money*0.85;
    }

    public SilverCard() {
    }

    public SilverCard(String id, double balance) {
        super(id, balance);
    }


}
